package com.maxd.service.helpTask;


import com.maxd.model.HelpUserScore;
import com.maxd.model.HelpUserScoreDetails;
import com.maxd.respository.helpTask.HelpUserScoreDetailsJpaRepository;
import com.maxd.respository.helpTask.HelpUserScoreDetailsRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 用户信誉分数信息
 */
@Service
public class HelpUserScoreDetailsServiceImpl implements HelpUserScoreDetailsService {

    /** 用户信誉分数信息 */
    @Autowired
    private HelpUserScoreDetailsJpaRepository helpUserScoreDetailsJpaRepository;
    /** 用户信誉分数信息 */
    @Autowired
    private HelpUserScoreDetailsRepository helpUserScoreDetailsRepository;


    public List<HelpUserScoreDetails> selectHelpUserScoreDetailsList(Long userId, Pageable pageable){
        return helpUserScoreDetailsRepository.selectHelpUserScoreDetailsList(userId,pageable);
    }

    @Override
    public HelpUserScoreDetails save(HelpUserScoreDetails helpUserScoreDetails) {
        return helpUserScoreDetailsJpaRepository.save(helpUserScoreDetails);
    }

}
